#ifndef WF_LOCKRELATIVEZERO_H
#define WF_LOCKRELATIVEZERO_H

#include "pf_previewactioninterface.h"
#include "gui_export.h"

/**
 * This action class can handle user events to lock or unlock
 * the relative Zero point.
 * It overrides but retains the locking of the relative Zero.
 *
 */
class GUI_EXPORT WF_LockRelativeZero : public PF_ActionInterface {
	Q_OBJECT
public:
    WF_LockRelativeZero(PF_Container& container,
                             PF_GraphicView& graphicView,
							 bool on);
    ~WF_LockRelativeZero() {}

	static QAction* createGUIAction(LX_Define::ActionType /*type*/, QObject* /*parent*/);

    virtual void init(int status=0);
    virtual void trigger();

private:
	bool on;
};

#endif
